home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 February / EnigmA AMIGA RUN 15 (1997)(G.R. Edizioni)(IT)[!][issue 1997-02][PLANET CD V].iso / progs / utility / screentab / installation-script < prev    next >
Text File  |  1996-11-19  |  20KB  |  770 lines

  1. ; Installation-Script for ScreenTab V3.0
  2. ; Author: Michael Link
  3. ; First creation : 28.10.94
  4. ; Last change    : 30.10.96
  5.  
  6. ; @s English string section
  7.  
  8. (set #bad-version
  9.     (cat "\n\nSorry, but ScreenTab requires\n"
  10.          "at least Kickstart 2.04"
  11.     )
  12. )
  13.  
  14. (set #scrtab-installed
  15.     (cat "\n\nScreenTab is already running on your system.\n"
  16.          "If you are running a version prior to 2.0 and want\n"
  17.          "to install the new version in the same directory as\n"
  18.          "the old, the installation must stop the ScreenTab-Task.\n"
  19.          "This could cause system instability until the next\n"
  20.          "reboot.\n\n"
  21.          "Do you want to continue ?"
  22.     )
  23. )
  24.  
  25. (set #help-dir
  26.     (cat "You must enter the name of the directory, in which\n"
  27.          "ScreenTab shall be installed.\n\n"
  28.          "If you want ScreenTab to be active everytime you\n"
  29.          "start the computer, enter the directory\n"
  30.          "\"SYS:WBStartup\", which is the default directory."
  31.     )
  32. )
  33.  
  34. (set #dir-request
  35.     (cat "Please enter the destination directory\n"
  36.          "for ScreenTab"
  37.     )
  38. )
  39.  
  40. (set #prefs-dir-request
  41.     (cat "Please enter the destination directory\n"
  42.          "for the ScreenTab-Preferences"
  43.     )
  44. )
  45.  
  46. (set #which-hotkey
  47.     (cat "\n\nWith which key combination shall the\n"
  48.          "preferences be called ?"
  49.     )
  50. )
  51.  
  52. (set #which-scrkey
  53.     (cat "\n\nWith which key combination shall the\n"
  54.          "screens be switched ?\n\n"
  55.          "(Don't use any of the SHIFT-Keys, because\n"
  56.          "ScreenTab needs them for back-switching !)"
  57.     )
  58. )
  59.  
  60. (set #which-winkey
  61.     (cat "\n\nWith which key combination shall the\n"
  62.          "windows be switched ?\n\n"
  63.          "(Don't use any of the SHIFT-Keys, because\n"
  64.          "ScreenTab needs them for back-switching !)"
  65.     )
  66. )
  67.  
  68. (set #write-tooltypes
  69.     "\nWriting Tool-Types ..."
  70. )
  71.  
  72. (set #old-prefs-file
  73.     (cat "\n\nThere's an older preferences file installed\n"
  74.          "on your system. If you want to use these\n"
  75.          "preferences, they must be converted.\n\n"
  76.          "Do you want to do this ?"
  77.     )
  78. )
  79.  
  80. (set #ask-plugins "\nWhich PlugIn-Modules do you want to install ?\n")
  81.  
  82. (set #ask-plugins-help
  83.     (cat "PlugIn-Modules add new functionality to the Start-Button."
  84.          "They can i. e. control commodities, eject changeable media "
  85.          "or close windows.\n\n"
  86.          "Please read the documentation for details."
  87.     )
  88. )
  89.  
  90. (set #ask-plugin-dir "\nChoose a directory for the modules ...\n")
  91.  
  92. (set #ask-brushes
  93.     (cat "\n\nDo you want to install the\n"
  94.          "included image-files (MWB-Style) ?"
  95.     )
  96. )
  97.  
  98. (set #ask-brushes-dir
  99.     (cat "In which directory shall I create\n"
  100.          "the ScreenTab-Images-Directory ?"
  101.     )
  102. )
  103.  
  104. (set #extracting-brushes "Extracting image files ...")
  105.  
  106. (set #ask-brushes-message
  107.     (cat "\n\n\nH I N T"
  108.          "\n\nThe easiest way to chose an image for an\n"
  109.          "application or a startup node is to drag the icon\n"
  110.          "of the image onto the image path gadget !"
  111.     )
  112. )
  113.  
  114. (set #ask-catalogs
  115.     "\nWhich language catalogs shall be installed ?\n"
  116. )
  117.  
  118. (set #ask-assign-brushes
  119.     (cat "\n\nDo you want to add an ASSIGN to\n"
  120.          "the image directory in S:User-Startup ?"
  121.     )
  122. )
  123.  
  124. (set #ask-scrnotify
  125.     (cat "\n\nIf available, ScreenTab uses\n"
  126.          "the ScreenNotify-Library to react on changes\n"
  127.          "of the Workbench resolution.\n\n"
  128.          "Do you want to install this library ?"
  129.     )
  130. )
  131.  
  132. (set #ask-scrnotify-help
  133.     (cat "The usage of this library is optional. "
  134.          "But if the Workbench resolution is changed "
  135.          "without this library installed, it can "
  136.          "cause system instability or crashes.\n\n"
  137.          "If you don't want to use an installed "
  138.          "ScreenNotify-Library, set the tool-type "
  139.          "USESCREENNOTIFY to NO."
  140.     )
  141. )
  142.  
  143. (set #ask-wbstarth
  144.     (cat "\n\nScreenTab uses the WBStart-Handler by\n"
  145.          "Stefan Becker to emulate a program start\n"
  146.          "via Workbench.\n\n"
  147.          "Do you want to install the handler now ?"
  148.     )
  149. )
  150.  
  151. (set #ask-wbstartl
  152.     (cat "\n\nScreenTab uses the WBStart-Library by\n"
  153.          "Stefan Becker to emulate a program start\n"
  154.          "via Workbench.\n\n"
  155.          "Do you want to install the library now ?"
  156.     )
  157. )
  158.  
  159. (set #copy-screentab
  160.     "\n\nCopying ScreenTab ..."
  161. )
  162.  
  163. (set #copy-screentabprefs
  164.     "\n\nCopying ScreenTabPrefs ..."
  165. )
  166.  
  167. (set #copy-plugin
  168.     "\n\nCopying PlugIn-Module ..."
  169. )
  170.  
  171. (set #copy-brushes
  172.     "\n\nCopying Image-Files ..."
  173. )
  174.  
  175. (set #copy-scrnotify
  176.     "\n\nCopying ScreenNotify-Library ..."
  177. )
  178.  
  179. (set #copy-wbstarth
  180.     "\n\nCopying WBStart-Handler ..."
  181. )
  182.  
  183. (set #copy-wbstartl
  184.     "\n\nCopying WBStart-Libraries ..."
  185. )
  186.  
  187. (set #copy-catalogs
  188.     "\n\nCopying language catalogs ..."
  189. )
  190.  
  191. (set #catalog-choice-default 0)
  192.  
  193. (set #lang-german
  194.     "German"
  195. )
  196.  
  197. (set #error-conversion
  198.     "\n\nError during conversion !!!"
  199. )
  200.  
  201. (set #error-prefs
  202.     (cat "\n\nAn error occured during checking of the version\n"
  203.          "of the preferences file. Probably this happened\n"
  204.          "because you are using a file of the first ScreenTab\n"
  205.          "version (1.13).\n\n"
  206.          "This version isn't supported anymore !"
  207.     )
  208. )
  209. ; @e
  210.  
  211. ; @s German string section
  212.  
  213. (if (= @language "deutsch")
  214. (
  215.  
  216. (set #bad-version
  217.     (cat "\n\nSorry, aber ScreenTab läuft erst ab\n"
  218.          "Kickstart 2.04."
  219.     )
  220. )
  221.  
  222. (set #scrtab-installed
  223.     (cat "\n\nScreenTab ist bereits auf Ihrem System aktiv.\n"
  224.          "Falls eine Version kleiner als 2.0 läuft und Sie die\n"
  225.          "neue Version in dasselbe Verzeichnis installieren wollen\n"
  226.          "wie die alte, muss der ScreenTab-Task beendet werden.\n"
  227.          "Dies kann u. U. zu Instabilitäten des Systems bis zum\n"
  228.          "nächsten Reset führen.\n\n"
  229.          "Wollen Sie trotzdem weitermachen ?"
  230.     )
  231. )
  232.  
  233. (set #help-dir
  234.     (cat "An dieser Stelle müssen Sie angeben, in welchem\n"
  235.       "Verzeichnis ScreenTab installiert werden soll.\n\n"
  236.       "Wenn ScreenTab gleich nach dem Start des Computers\n"
  237.       "aktiv sein soll, sollten Sie als Zielverzeichnis\n"
  238.       "\"SYS:WBStartup\" angeben."
  239.     )
  240. )
  241.  
  242. (set #dir-request
  243.     (cat "Geben Sie jetzt das Verzeichnis an,\n"
  244.          "in dem ScreenTab installiert werden soll."
  245.     )
  246. )
  247.  
  248. (set #prefs-dir-request
  249.     (cat "Geben Sie jetzt das Verzeichnis an, in das das\n"
  250.          "Voreinstellungsprogramm kopiert werden soll."
  251.     )
  252. )
  253.  
  254. (set #which-hotkey
  255.     (cat "\n\nMit welcher Tastenkombination sollen die\n"
  256.          "ScreenTab-Voreinstellungen aufgerufen werden ?"
  257.     )
  258. )
  259.  
  260. (set #which-scrkey
  261.     (cat "\n\nMit welcher Tastenkombination sollen die\n"
  262.          "Screens umgeschaltet werden ?\n\n"
  263.          "(Bitte geben Sie hier keine SHIFT-Taste an, da\n"
  264.          "diese für das Zurückblättern gebraucht werden !)"
  265.     )
  266. )
  267.  
  268. (set #which-winkey
  269.     (cat "\n\nMit welcher Tastenkombination sollen die\n"
  270.          "Fenster umgeschaltet werden ?\n\n"
  271.          "(Bitte geben Sie hier keine SHIFT-Taste an, da\n"
  272.          "diese für das Zurückblättern gebraucht werden !)"
  273.     )
  274. )    
  275.  
  276. (set #write-tooltypes
  277.     "\nSchreibe Tool-Types ..."
  278. )
  279.  
  280. (set #old-prefs-file
  281.     (cat "\n\nEine ältere Voreinstellungsdatei ist auf\n"
  282.          "ihrem System installiert. Um diese Einstellungen\n"
  283.          "mit der neuen Version nutzen zu können, muß\n"
  284.          "eine Konvertierung vorgenommen werden.\n\n"
  285.          "Wollen Sie das ?"
  286.     )
  287. )   
  288.  
  289. (set #ask-plugins "\nWelche PlugIn-Module wollen Sie installieren ?\n")
  290.  
  291. (set #ask-plugins-help
  292.     (cat "PlugIn-Module erweitern die Funktionalität des "
  293.          "Start-Buttons. Mit ihnen können beispielsweise "
  294.          "die Commodities kontrolliert, Wechselmedien "
  295.          "ausgeworfen oder Fenster geschlossen werden.\n\n"
  296.          "Bitte lesen Sie dazu die Dokumentation."
  297.     )
  298. )
  299.  
  300. (set #ask-plugin-dir
  301.     "\nBitte wählen Sie ein Verzeichnis für die PlugIn-Module ...\n"
  302. )
  303.  
  304. (set #ask-brushes
  305.     (cat "\n\nWollen Sie die mitgelieferten Image-Dateien\n"
  306.          "installieren (MWB-Stil) ?"
  307.     )
  308. )
  309.  
  310. (set #ask-brushes-dir
  311.     (cat "In welches Verzeichnis sollen die Image-Dateien\n"
  312.          "kopiert werden ? Ein Verzeichnis mit dem Namen\n"
  313.          "'ScreenTab-Images' wird dort angelegt"
  314.     )
  315. )
  316.  
  317. (set #extracting-brushes "Entpacke Image-Dateien ...")
  318.  
  319. (set #ask-brushes-message
  320.     (cat "\n\n\nH I N W E I S"
  321.          "\n\nAm einfachsten ordnen Sie einer Anwendung\n"
  322.          "oder einem Startup-Eintrag ein Image zu, indem\n"
  323.          "Sie das Icon des Image auf das Eingabefeld für\n"
  324.          "den Image-Pfad ziehen."
  325.     )
  326. )
  327.  
  328. (set #ask-catalogs
  329.     "\nWelche Sprach-Kataloge sollen installiert werden ?\n"
  330. )
  331.  
  332. (set #ask-scrnotify
  333.     (cat "\n\nScreenTab benutzt, falls vorhanden,\n"
  334.          "die ScreenNotify-Library, um auf Wechsel der\n"
  335.          "Workbench-Auflösung reagieren zu können.\n\n"
  336.          "Wollen Sie diese Library installieren ?"
  337.     )
  338. )
  339.  
  340. (set #ask-scrnotify-help
  341.     (cat "Die Benutzung dieser Library ist optional. "
  342.          "Allerdings kann es zu Fehlern oder Abstürzen "
  343.          "kommen, wenn die Workbench-Auflösung ohne "
  344.          "installierte Library gewechselt wird.\n\n"
  345.          "Wenn Sie auf die ScreenNotify-Library "
  346.          "verzichten wollen, können Sie dies gezielt "
  347.          "mit dem Tool-Type USESCREENNOTIFY unterbinden, "
  348.          "indem Sie ihn auf NO setzen."
  349.     )
  350. )
  351.  
  352. (set #ask-wbstarth
  353.     (cat "\n\nScreenTab braucht den WBStart-Handler von\n"
  354.          "Stefan Becker, um einen Programmstart über die\n "
  355.          "Workbench zu emulieren.\n\n"
  356.          "Wollen Sie den Handler jetzt installieren ?"
  357.     )
  358. )
  359.  
  360. (set #ask-wbstartl
  361.     (cat "\n\nScreenTab braucht die WBStart-Library von\n"
  362.          "Stefan Becker, um einen Programmstart über die\n"
  363.          "Workbench zu emulieren.\n\n"
  364.          "Wollen Sie die Library jetzt installieren ?\n"
  365.     )
  366. )
  367.  
  368. (set #copy-screentab
  369.     "\n\nKopiere ScreenTab ..."
  370. )
  371.  
  372. (set #copy-screentabprefs
  373.     "\n\nKopiere ScreenTabPrefs ..."
  374. )
  375.  
  376. (set #copy-plugin
  377.     "\n\nKopiere PlugIn-Module ..."
  378. )
  379.  
  380. (set #copy-brushes
  381.     "\n\nKopiere Image-Dateien ..."
  382. )
  383.  
  384. (set #copy-scrnotify
  385.     "\n\nKopiere ScreenNotify-Library ..."
  386. )
  387.  
  388. (set #copy-wbstarth
  389.     "\n\nKopiere WBStart-Handler ..."
  390. )
  391.  
  392. (set #copy-wbstartl
  393.     "\n\nKopiere WBStart-Libraries ..."
  394. )
  395.  
  396. (set #copy-catalogs
  397.     "\n\nKopiere Sprachkataloge ..."
  398. )
  399.  
  400. (set #catalog-choice-default 1)
  401.  
  402. (set #lang-german
  403.     "Deutsch"
  404. )
  405.  
  406. (set #error-conversion
  407.     "\n\nFehler beim Konvertieren !!!"
  408. )
  409.  
  410. (set #error-prefs
  411.     (cat "\n\nBeim der Versions-Überprüfung der Voreinstellungs-\n"
  412.          "datei trat ein Fehler auf. Wahrscheinlich benutzen\n"
  413.          "Sie noch eine Datei der ersten ScreenTab-Version (1.13).\n\n"
  414.          "Diese wird jedoch nicht mehr unterstützt !"
  415.     )
  416. )
  417.  
  418. )
  419. ) ; endif
  420.  
  421. ; @e
  422.  
  423. ; @s different version numbers
  424.  
  425. (set intuition_vernum (getversion "intuition.library" (resident)))
  426. (set intuition_ver    (shiftright intuition_vernum 16))
  427. (set locale_vernum    (getversion "locale.library" (resident)))
  428. (set locale_ver       (shiftright locale_vernum 16))
  429. (set scrntfy_vernum   (getversion "LIBS:screennotify.library"))
  430. (set scrntfy_ver      (shiftright scrntfy_vernum 16))
  431. (set wbstarth_vernum  (getversion "L:WBStart-Handler"))
  432. (set wbstarth_ver     (shiftright wbstarth_vernum 16))
  433. (set wbstartl_vernum  (getversion "LIBS:wbstart.library"))
  434. (set wbstartl_ver     (shiftright wbstartl_vernum 16))
  435.  
  436. ; @e
  437.  
  438. ; @s check OS version
  439. (if (< intuition_ver 37)
  440.     (abort #bad-version)
  441. )
  442. ; @e
  443.  
  444. ; @s ScreenTab already running ?
  445.  
  446. (if (run "HandleScrTab CHECK" (safe))
  447.     (if (askbool (prompt #scrtab-installed)
  448.                  (help)
  449.                  (default 1)
  450.         )
  451.         (run "HandleScrTab STOP")
  452.         (exit (quiet))
  453.     )
  454. )
  455.  
  456. ; @e
  457.  
  458. ; @s Ask for destination directory
  459.  
  460. (set DIR (askdir (prompt #dir-request)
  461.                  (help #help-dir)
  462.                  (default "SYS:WBStartup")
  463.          )
  464. )
  465.  
  466. (set PREFSDIR (askdir (prompt #prefs-dir-request)
  467.                       (help @askdir-help)
  468.                       (default "SYS:Prefs")
  469.               )
  470. )
  471.  
  472. ; @e
  473.  
  474. ; @s Tool-Types and copy main program
  475.  
  476. (set @default-dest PREFSDIR)
  477.  
  478. (copyfiles (prompt #copy-screentabprefs)
  479.            (help @copyfiles-help)
  480.            (source "Prefs/ScreenTabPrefs")
  481.            (dest PREFSDIR)
  482.            (infos)
  483. )
  484.  
  485. (set @default-dest DIR)
  486.  
  487. (set HOTKEY (askstring (prompt #which-hotkey)
  488.                        (help @askstring-help)
  489.                        (default "ctrl alt s")
  490.             )
  491. )
  492.  
  493. (set SWITCHKEY (askstring (prompt #which-scrkey)
  494.                           (help @askstring-help)
  495.                           (default "LCommand Tab")
  496.                )
  497. )  
  498.  
  499. (set WINSWITCHKEY (askstring (prompt #which-winkey)
  500.                           (help @askstring-help)
  501.                           (default "LCommand `")
  502.                   )
  503. )
  504.  
  505. (tooltype (prompt #write-tooltypes)
  506.           (help)
  507.           (dest "ScreenTab")
  508.           (settooltype "CX_POPKEY" HOTKEY)
  509.           (settooltype "SWITCHKEY" SWITCHKEY)
  510.           (settooltype "WINSWITCHKEY" WINSWITCHKEY)
  511.           (settooltype "PREFSDIR" PREFSDIR)
  512. )
  513.  
  514. (copyfiles (prompt #copy-screentab)
  515.            (help @copyfiles-help)
  516.            (source "ScreenTab")
  517.            (dest DIR)
  518.            (infos)
  519. )
  520.  
  521. ; @e
  522.  
  523. ; @s Checking for preferences file and need for conversion
  524.  
  525. (if (exists "ENVARC:ScreenTab.prefs")
  526.     (
  527.         (set #check-prefsversion (run "HandleScrTab PREFSVERSION" (safe) ) )
  528.  
  529.         (if (> #check-prefsversion 1)
  530.             (message #error-prefs)
  531.         )
  532.  
  533.         (if (= #check-prefsversion 1)
  534.             (if (askbool (prompt #old-prefs-file)
  535.                          (help)
  536.                          (default 1)
  537.                 )
  538.                 (if (> (run "HandleScrTab CONVERTPREFS" (safe) ) 0)
  539.                     (copyfiles (prompt)
  540.                                (help)
  541.                                (source "T:SCRT.TMP")
  542.                                (dest "ENVARC:")
  543.                                (newname "ScreenTab.prefs")
  544.                     )
  545.                     (message #error-conversion)
  546.                 )
  547.             )
  548.         )
  549.     )
  550.     (copyfiles (prompt #copy-preferences)
  551.                (help)
  552.                (source "ScreenTab.prefs")
  553.                (dest "ENVARC:")
  554.     )
  555. )
  556.  
  557. ; @e
  558.  
  559. ; @s Installation of the PlugIn-Modules
  560.  
  561. (set #plugin-choice (askoptions (prompt #ask-plugins)
  562.                                 (help #ask-plugins-help)
  563.                                 (choices "Commodities" "Windows" "SysTools")
  564.                     )
  565. )
  566.  
  567. (if #plugin-choice
  568.     (
  569.         (set #plugin-dir (askdir (prompt #ask-plugin-dir)
  570.                                  (help @askfile-help)
  571.                                  (default "")
  572.                          )
  573.         )
  574.  
  575.         (set n 0)
  576.  
  577.         (while (set #plugin (select n "commodities.plugin"
  578.                                       "windows.plugin"
  579.                                       "systools.plugin"
  580.                                       ""
  581.                             )
  582.                )
  583.                (if (IN #plugin-choice n)
  584.                    (
  585.                        (set #plugin-source (tackon "PlugIns" #plugin))
  586.  
  587.                        (copylib (prompt #copy-plugin)
  588.                                 (help)
  589.                                 (source #plugin-source)
  590.                                 (dest #plugin-dir)
  591.                        )
  592.                    )
  593.                )
  594.  
  595.                (set n (+ n 1))
  596.         )
  597.     )
  598. )
  599.  
  600. ; @e
  601.  
  602. ; @s Extracting of the images
  603.  
  604. (if (askbool (prompt #ask-brushes)
  605.              (help)
  606.              (default 1)
  607.     )
  608.     (
  609.         (set #brush-dir (askdir (prompt #ask-brushes-dir)
  610.                                 (help @askdir-help)
  611.                                 (default "SYS:Prefs")
  612.                         )
  613.         )
  614.  
  615.         (set #brush-dir (tackon #brush-dir "ScreenTab-Images"))
  616.  
  617.         (makedir #brush-dir
  618.                  (prompt)
  619.                  (help @makedir-help)
  620.                  (infos)
  621.         )
  622.  
  623.         (set #exelha (cat "lha e Images.lha \""
  624.                           #brush-dir "/\""
  625.                      )
  626.         )
  627.  
  628.         (working #extracting-brushes)
  629.  
  630.         (run #exelha)
  631.  
  632.         (message #ask-brushes-message)
  633.     )
  634. )
  635.  
  636. ; @e
  637.  
  638. ; @s Installation of the ScreenNotify-Library
  639.  
  640. (if (= scrntfy_ver 0)
  641.     (if (askbool (prompt #ask-scrnotify)
  642.                  (help   #ask-scrnotify-help)
  643.                  (default 1)
  644.         )
  645.         (copylib (prompt #copy-scrnotify)
  646.                  (help)
  647.                  (source "Libs/screennotify.library")
  648.                  (dest   "LIBS:")
  649.                  (confirm)
  650.         )
  651.     )
  652. )
  653.  
  654. ; @e
  655.  
  656. ; @s Installation of the WBStart-Library or -Handler
  657.  
  658. ; we can only use WBStart-Library with OS 3.x
  659. (if (>= intuition_ver 39)
  660.     (if (= wbstartl_ver 0)
  661.         (if (askbool (prompt #ask-wbstartl)
  662.                      (help)
  663.                      (default 1)
  664.             )
  665.             (
  666.                 (copylib (prompt #copy-wbstartl)
  667.                          (help)
  668.                          (source "Libs/wbstart.library")
  669.                          (dest   "LIBS:")
  670.                          (confirm)
  671.                 )
  672.                 (copylib (prompt #copy-wbstartl)
  673.                          (help)
  674.                          (source "Libs/dospath.library")
  675.                          (dest   "LIBS:")
  676.                          (confirm)
  677.                 )
  678.             )
  679.         )
  680.     )
  681.     (if (= wbstarth_ver 0)
  682.         (if (askbool (prompt #ask-wbstarth)
  683.                      (help)
  684.                      (default 1)
  685.             )
  686.             (copylib (prompt #copy-wbstarth)
  687.                      (help)
  688.                      (source "L/WBStart-Handler")
  689.                      (dest   "L:")
  690.                      (confirm)
  691.             )
  692.         )
  693.     )
  694. )
  695.  
  696. ; @e
  697.  
  698. ; @s Installation of the catalogs
  699.  
  700. (if (>= locale_ver 38)
  701.     (
  702.         (set #catalogs (askoptions (prompt #ask-catalogs)
  703.                                    (help)
  704.                                    (choices #lang-german)
  705.                                    (default #catalog-choice-default)
  706.                        )
  707.         )
  708.  
  709.         (if (> #catalogs 0)
  710.             (
  711.                 (set n 0)
  712.  
  713.                 (while (set #language (select n "deutsch" ""))
  714.  
  715.                     (if (IN #catalogs n)
  716.                         (
  717.                             (set #dstpath (tackon (tackon "LOCALE:Catalogs" #language) "ScreenTab"))
  718.  
  719.                             (if (NOT (exists #dstpath))
  720.                                 (makedir #dstpath
  721.                                          (prompt)
  722.                                          (help @makedir-help)
  723.                                 )
  724.                             )
  725.  
  726.                             (set #srcpath (cat "catalogs/"
  727.                                                #language
  728.                                           )
  729.                             )
  730.  
  731.                             (copyfiles (prompt #copy-catalogs)
  732.                                        (help)
  733.                                        (source #srcpath)
  734.                                        (dest   #dstpath)
  735.                                        (pattern "#?.catalog")
  736.                             )
  737.  
  738.                             (if #plugin-choice
  739.                                 (
  740.                                     (set #dstpath-plugins (tackon #dstpath "PlugIns"))
  741.  
  742.                                     (if (NOT (exists #dstpath-plugins))
  743.                                         (makedir #dstpath-plugins
  744.                                                  (prompt)
  745.                                                  (help @makedir-help)
  746.                                         )
  747.                                     )
  748.  
  749.                                     (set #srcpath-plugins (tackon #srcpath "PlugIns"))
  750.  
  751.                                     (copyfiles (prompt #copy-catalogs)
  752.                                                (help)
  753.                                                (source #srcpath-plugins)
  754.                                                (dest   #dstpath-plugins)
  755.                                                (pattern "#?.catalog")
  756.                                     )
  757.                                 )
  758.                             )
  759.                         )
  760.                     )
  761.  
  762.                     (set n (+ n 1))
  763.                 )
  764.             )
  765.         )
  766.     )
  767. )
  768.  
  769. ; @e
  770.